# Maintainer: Jaroslav Lichtblau <svetlemodry@archlinux.org>

pkgname=perl-test-distmanifest
pkgver=1.014
pkgrel=5
pkgdesc="Author test that validates a package MANIFEST"
arch=('any')
url='https://search.cpan.org/dist/Test-DistManifest/'
license=('GPL' 'PerlArtistic')
depends=('perl' 'perl-module-manifest')
makedepends=('perl-module-build')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Test-DistManifest-$pkgver.tar.gz)
sha256sums=('3d26c20df42628981cbfcfa5b1ca028c6ceadb344c1dcf97a25ad6a88b73d7c5')

build() {
  cd "${srcdir}"/Test-DistManifest-$pkgver

  perl Build.PL installdirs=vendor
  ./Build
}

package() {
  cd "${srcdir}"/Test-DistManifest-$pkgver

  ./Build install destdir="${pkgdir}"

  find "${pkgdir}" -name '.packlist' -delete
  find "${pkgdir}" -name '*.pod' -delete
}
